package com.ecube.maintenance.pojos;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by Trible Chen on 2014/9/5.
 * A Base Class for receiving json data from server
 */
public class BaseInfo<T> implements Serializable {

    @SerializedName("_id")
    private long id;

    private String errorMsg;

    private long errorCode;

    T returnData;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public long getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(long errorCode) {
        this.errorCode = errorCode;
    }

    public T getReturnData() {
        return returnData;
    }

    public void setReturnData(T returnData) {
        this.returnData = returnData;
    }
}
